package com.probiz.estore.content.service;

import java.util.List;

import com.probiz.estore.common.model.content.SystemMessage;
import com.probiz.estore.core.service.GenericManager;

/**
 * Manager interface for SystemMessage, responsible for business processing, and communicate between web and persistence layer.
 *
 */
public interface SystemMessageManager extends GenericManager<SystemMessage> {
	/**
	 * 添加系统消息
	 * @param messageHtml 消息内容
	 * @param type 消息类型
	 * @param appUserId 客户id
	 */
	public void addSystemMessage(String messageHtml,Short type,Integer appUserId);

	public Integer[] getCountsOfCustomer(Integer currentUserId);

	/**
	 * 将message消息置为已读;
	 * @param messageId
	 */
	public void readMessage(Integer messageId);

	public Long countNeverReadMessage(Integer integer); 

	public Long countAllMessage(Integer integer);

	public List<SystemMessage> readNeverReadMessage(Integer currentUserId); 
}
